Canvg

constructor(ctx: CanvasRenderingContext2D, svg: Document, options: JsAny? = definedExternally)

Main constructor.

Parameters

ctx
  • Rendering context.

svg
  • SVG Document.

options
  • Rendering options.